.profile-container {
    min-height: 100vh;
    padding: 2rem;
    background: #f8f9fa;
}

/* 个人信息头部 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-avatar {
    text-align: center;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.change-avatar {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.change-avatar:hover {
    background: #0056b3;
}

.profile-info h2 {
    margin: 0 0 0.5rem;
    color: #333;
}

.profile-info p {
    color: #666;
    margin: 0;
}

/* 内容区域 */
.profile-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 导航标签 */
.profile-nav {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.nav-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    color: #007bff;
}

.nav-btn.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    background: white;
}

/* 标签页内容 */
.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.save-btn {
    padding: 0.8rem 2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background: #0056b3;
}

/* 订单列表样式 */
.order-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.order-status {
    color: #007bff;
    font-weight: bold;
}

.order-items {
    padding: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.item-info h4 {
    margin: 0 0 0.5rem;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.order-total {
    font-weight: bold;
    color: #dc3545;
}

.review-btn {
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-btn:hover {
    background: #218838;
}

/* 评论列表样式 */
.comment-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.rating-display {
    color: #ffd700;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* 头像上传样式 */
.avatar-upload {
    text-align: center;
    margin: 2rem 0;
}

.preview-container {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    border: 2px dashed #dee2e6;
    border-radius: 50%;
    overflow: hidden;
}

#avatarPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-nav {
        overflow-x: auto;
    }

    .nav-btn {
        padding: 1rem;
        white-space: nowrap;
    }

    .order-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .order-item {
        flex-direction: column;
    }

    .order-item img {
        width: 100%;
        height: 200px;
    }
} 